<include file="./Application/Admin/View/default/Public/front.html"/>
<style>
    .xinzeng {
        margin: 0 10px;
    }

    .topic {
        width: 100%;
        height: 40px;
        line-height: 40px;
        font-size: 20px;
        font-family: Arial;
        text-align: center;
        background: #e6e6e6;
        color: #666;
    }
    .layui-body{overflow-y: scroll;}
</style>
<div class="layui-body">
    <!-- 内容主体区域 -->
    <div class="topic">系统设置</div>
    <div id="systemlistBody" style="padding: 10px;">
        <table id="system" lay-filter="system"></table>
        <script type="text/html" id="barDemo">
            <a class="layui-btn layui-btn-xs" lay-event="edit">修改</a>
        </script>
    </div>
    
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 5px;">
        <legend>计算规则</legend>
    </fieldset>   

    <div style="padding: 20px; background-color: #F2F2F2;">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md6" style="width: 33.3%">
                <div class="layui-card">
                    <div class="layui-card-header">课程教学工作量</div>
                    <div class="layui-card-body">
                        标准学时数=计划学时×A1×B1<br>
                        A1：学生人数调节系数<br>
                        B1：课程调节系数，一般情况下B1＝1.0
                    </div>
                </div>
            </div>
            <div class="layui-col-md6" style="width: 33.3%">
            <div class="layui-card">
                <div class="layui-card-header">课程设计工作量</div>
                    <div class="layui-card-body">
                        标准学时数=计划周数×10×A2<br>
                        A2：学生人数调节系数<br>
                        &nbsp;
                    </div>
                </div>
            </div>
            <div class="layui-col-md6" style="width: 33.3%">
            <div class="layui-card">
                <div class="layui-card-header">毕业设计工作量</div>
                    <div class="layui-card-body">
                        标准学时数=指导学生数×15×A3<br>
                        A3：学生人数调节系数<br>
                        &nbsp;
                    </div>
                </div>
            </div>
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">补充说明</div>
                        <div class="layui-card-body">
                            1.若学生人数少于或等于80人，中、英文写作课B1=1.2，经学校认定的双语教学课程B1=1.5。<br>
                            2.设计类指导，一般不超过8个毕业生；论文类指导，一般不超过10个毕业生。超过规定指导人数时，超过部分工作量折半计算。
                        </div>
                    </div>
                </div>
            </div>
            <!-- <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">毕业设计工作量</div>
                        <div class="layui-card-body">
                            标准学时数=指导学生数×15×A3<br>
                            A3：学生人数调节系数
                        </div>
                    </div>
                </div>
            </div> -->
        </div>    
    </div>

<include file="./Application/Admin/View/default/Public/behind.html"/>

<script>
    
    layui.use(['table', 'jquery'], function () {
        var table = layui.table;
        var $ = layui.jquery;
        //监听工具条
        table.on('tool(system)', function (obj) {
            var data = obj.data;

            if (obj.event === 'edit') {
                $.ajax({
                    url: "{:U('systemDetail')}",
                    data: 'id=' + data.coe_id,
                    method: 'post',
                    success: function (res) {
//                            console.log(res);
                        $('#systemlistBody').html(res);
                    }
                });
            }
        });

        table.render({
            elem: '#system'
            , url: '{:U("System/index")}' //数据接口
            , method: 'post'
            , page: false //开启分页
            , limit: 10
            , cols: [[ //表头
//                {type: 'checkbox', fixed: 'left'},
                {field: 'coe_a', title: 'A1基数', width: "15%"},
                    {field: 'coe_b', title: '系数B1', width: "15%"},
                    {field: 'coe_c', title: 'A2基数', width: "15%"},
                    {field: 'coe_d', title: 'A3基数', width: "15%"},
                    {field: 'right', title: '操作', align: 'center', toolbar: '#barDemo', width: "15%"}
            ]]
        });

    });

</script>


